package com.bw.kf.all2211a.user

import android.content.Context
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bw.kf.all2211a.R

object GlideUser {
    fun loadImage(context: Context,imageView: ImageView, url:String?) {
        Glide.with(context).load(url).diskCacheStrategy(DiskCacheStrategy.AUTOMATIC).into(imageView)
    }
    fun CirImage(context: Context,imageView: ImageView, url:String?) {
        Glide.with(context).load(url).diskCacheStrategy(DiskCacheStrategy.AUTOMATIC).circleCrop().into(imageView)
    }
    fun CenImage(context: Context,imageView: ImageView, url:String?) {
        Glide.with(context).load(url).diskCacheStrategy(DiskCacheStrategy.AUTOMATIC).centerCrop().into(imageView)
    }
}